package com.example.apione.controller.admin;

import com.example.apione.dao.userLogDao;
import com.example.apione.entity.userLog;
import com.example.apione.model.LogModel;
import com.example.apione.model.userLogModel;
import com.example.apione.utils.ResponseResult;
import lombok.Data;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 尘落
 * @date 2023/2/26
 */
@Data
@RestController
public class getadminLog {
    private final userLogDao userLogDao;
    @GetMapping("/admin/adminlog")
    public ResponseResult getlog(){
        List<userLog> getuserlog = userLogModel.getuserlog(userLogDao);
        return ResponseResult.ok(getuserlog);
    }
}
